$selectedColor: #f6f7ff;
$lighterBlue: #409EFF;

.container {
    margin: 0px;
    position: relative;
    width: 100%;
    height: 100%;
}

.left-board {
    width: 260px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%; //vh
}

.logo-wrapper {
    position: relative;
    height: 42px;
    background: #fff;
    border-bottom: 1px solid #f1e8e8;
    box-sizing: border-box;
}

.logo {
    position: absolute;
    left: 12px;
    top: 6px;
    line-height: 30px;
    color: #00afff;
    font-weight: 600;
    font-size: 17px;
    white-space: nowrap;

}

.left-scrollbar {
    height: calc(100vh - 42px);
    overflow: hidden;
}

.components-list {
    padding: 8px;
    box-sizing: border-box;
    height: 100%;

    .components-item {
        display: inline-block;
        width: 105px;
        margin: 6px 8px;
        transition: transform 0ms !important;
    }
}

.components-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 6px 2px;
}

.svg-img {
    height: 16px;
    width: 16px;
}

.components-draggable {
    padding-bottom: 20px;
}

.components-body {
    padding: 8px 10px;
    background: $selectedColor;
    font-size: 14px;
    cursor: move;
    border: 1px dashed $selectedColor;
    border-radius: 3px;

    .svg-icon {
        color: #777;
        font-size: 15px;
    }

    &:hover {
        border: 1px dashed #787be8;
        color: #787be8;
        font-weight: 600;

        .svg-icon {
            color: #787be8;
        }
    }
}

.center-board {
    margin: 0 350px 0 260px;
}

.action-bar {
    position: relative;
    height: 42px;
    text-align: right;
    vertical-align: middle;
    padding: 3px 15px 3px 15px;
    box-sizing: border-box;
    border: 1px solid #f1e8e8;
    border-top: none;
    border-left: none;
}

.center-scrollbar {
    //height: calc(100vh - 42px);
    overflow: hidden;
    width: 800px;
    box-shadow: 0 4px 10px #0c1f5014;
    border-radius: 8px;
    background: #fff;
    display: block;
    margin-top: 20px;
    margin-bottom: 30px;
}

.center-board-row {
    padding: 12px 12px 15px 12px;
    box-sizing: border-box;

    &>.el-form {
        // 69 = 12+15+42
        height: calc(100vh - 110px);
        width: 100%;
    }
}

.dynamic-form {
    background: #F9FAFC;
    display: flex;
    justify-content: center;
    border-left: 1px solid #f1e8e8;
    border-right: 1px solid #f1e8e8;
    box-sizing: border-box;
}

.empty-info {
    position: absolute;
    top: 46%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    color: #ccb1ea;
    letter-spacing: 4px;
}

.drawing-board {
    height: 100%;
    position: relative;

    .components-body {
        padding: 0;
        margin: 0;
        font-size: 0;
    }

    .sortable-ghost {
        position: relative;
        display: block;
        overflow: hidden;

        &::before {
            content: " ";
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 3px;
            background: rgb(89, 89, 223);
            z-index: 2;
        }
    }

    .components-item.sortable-ghost {
        width: 100%;
        height: 60px;
        background-color: $selectedColor;
    }

    .active-from-item {
        &>.el-form-item {
            background: $selectedColor;
            border-radius: 6px;
        }

        &>.drawing-item-copy,
        &>.drawing-item-delete {
            display: initial;
        }

        &>.component-name {
            color: $lighterBlue;
        }
    }

    .el-form-item {
        margin-bottom: 15px;
    }
}

.drawing-item {
    position: relative;
    cursor: move;

    &.unfocus-bordered:not(.active-from-item)>div:first-child {
        border: 1px dashed #ccc;
    }

    .el-form-item {
        padding: 12px 10px;
    }

    &:hover {
        &>.el-form-item {
            background: $selectedColor;
            border-radius: 6px;
        }

        &>.drawing-item-copy,
        &>.drawing-item-delete {
            display: initial;
        }
    }

    &>.drawing-item-copy,
    &>.drawing-item-delete {
        display: none;
        position: absolute;
        top: -10px;
        width: 22px;
        height: 22px;
        line-height: 22px;
        text-align: center;
        border-radius: 50%;
        font-size: 12px;
        border: 1px solid;
        cursor: pointer;
        z-index: 1;
    }

    &>.drawing-item-copy {
        right: 56px;
        border-color: $lighterBlue;
        color: $lighterBlue;
        background: #fff;

        &:hover {
            background: $lighterBlue;
            color: #fff;
        }
    }

    &>.drawing-item-delete {
        right: 24px;
        border-color: #F56C6C;
        color: #F56C6C;
        background: #fff;

        &:hover {
            background: #F56C6C;
            color: #fff;
        }
    }
}

.desc {
    margin: 0px 10px 8px 15px;
}

.el-transfer.transfer-high {
    width: 780px;

    .el-transfer-panel {
        width: 300px;

        &__body {
            height: 380px !important;

            .el-transfer-panel__list {
                height: 380px - 60 !important;
            }
        }
    }
}
